import request from '@/utils/request'

export function getUserInfo(){
  return request({
    url:process.env.VUE_APP_BASE_URL+'/admin/personalCenter',
    method: 'get',
  })
}

export function updateUserInfo(data){
  return request({
    url:process.env.VUE_APP_BASE_URL+'/admin/PersonalCenter/edit',
    method: 'post',
    data:data
  })
}

export function udpatePwd(data){
  return request({
    url:process.env.VUE_APP_BASE_URL+'/admin/PersonalCenter/updatePwd',
    method: 'post',
    data:data
  })
}
